package pojo;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;


import java.io.Serializable;
import java.sql.Date;


public class User implements Serializable {

    /**
     * id
     */
    private String id;

    /**
     * 用户账号
     */

    @JSONField(name = "user_code")
    private String userCode;

    /**
     * 用户密码
     */
    private String passwrod;

    /**
     * 用户名
     */
    @JSONField(name = "user_name")
    private String userName;

    /**
     * 性别
     */
    private String sex;

    /**
     * 角色
     */
    private int role;

    /**
     * 钱
     */
    private Double money;

    /**
     * 电话
     */
    private String phone;

    /**
     * 出生日期
     */
    private Date birth;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public String getPasswrod() {
        return passwrod;
    }

    public void setPasswrod(String passwrod) {
        this.passwrod = passwrod;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getRole() {
        return role;
    }

    public void setRole(int role) {
        this.role = role;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getBirth() {
        return birth;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }

    @Override
    public String toString() {
        return "User{" +
                "id='" + id + '\'' +
                ", userCode='" + userCode + '\'' +
                ", passwrod='" + passwrod + '\'' +
                ", userName='" + userName + '\'' +
                ", sex='" + sex + '\'' +
                ", role='" + role + '\'' +
                ", money=" + money +
                ", phone='" + phone + '\'' +
                ", birth='" + birth + '\'' +
                '}';
    }
}
